const sequelize = require("./db")
const {DataTypes} = require('sequelize');

const Admin = sequelize.define('Admin', { 
    loginId: {
        type: DataTypes.STRING,
        allowNull: false 
    },
    loginPwd: {
        type: DataTypes.STRING,
        allowNull: false
    },
    name: {
        type: DataTypes.STRING(100),
        allowNull: false
    },
    img: {
        type: DataTypes.STRING,
        allowNull: true
    },
    dzg: {
        type: DataTypes.STRING,
        allowNull: true
    },
}, {
    paranoid: true,
});

module.exports = Admin;